<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<link href="<?php echo $this->baseUrl;?>/admincss/style.css" rel="stylesheet" type="text/css" />
<body>
<table width="100%" border="1" class="tableA">
  <tr>
    <td width="5%" nowrap>编号</td>
    <td nowrap>字段名称(中文)</td>
    <td nowrap>字段类型</td>
    <td nowrap>必填</td>
    <td nowrap>独占一行</td>
    <td nowrap>排序</td>
    <td nowrap>最后编辑时间</td>
    <td>操作</td>
  </tr><!--
<?php
$arr_types = array(1 => '文本框', 2=>'单选', 3 => '下拉列表', 4=> '邮件地址', 5=> '日期类型', 6 => '多行文本框');

foreach ($this->list as $v){
$editurl = $this->url($this->fullUrl, 'dict', 'edit','did='.$v['did'] . '&nowp=' . $this->nowp);
$showurl = $this->url($this->fullUrl, 'dict', 'show','did='.$v['did']);
$delurl=$this->url($this->fullUrl, 'dict', 'del', 'did='.$v['did'] . '&nowp=' . $this->nowp);
$title = addslashes(htmlspecialchars($v['key']));
$type = $arr_types[$v['type']];

$delstr = " <a href=\"{$delurl}\" onclick=\"return window.confirm('确认删除:{$title}');\">删除</a>";

if ($v['issys']){
	$delstr = "";
}
print <<<EOT
-->
  <tr>
    <td>{$v['did']}</td>
    <td nowrap>{$v['key']}</td>
    <td nowrap>{$type}</td>
    <td>{$v['ismust']}</td>
    <td>{$v['isoneline']}</td>
    <td>{$v['seq']}</td>
    <td>{$v['pubtime']}</td>
    <td><a href="{$editurl}">编辑</a> {$delstr}</td>
  </tr><!--
EOT;
}
$indexurl =$this->url($this->fullUrl, 'dict', 'list', 'nowp=1' . '&group=' . $this->group);
$nexturl = $this->url($this->fullUrl, 'dict', 'list', 'nowp='.$this->page['next']);
$preurl = $this->url($this->fullUrl, 'dict', 'list', 'nowp='.$this->page['previous']);
$lasturl = $this->url($this->fullUrl, 'dict', 'list', 'nowp='.$this->page['totalpage']);
print <<<EOT
-->
  <tr>
    <td colspan="8">共{$this->page['totalnum']}个 {$this->page['nowp']}/{$this->page ['totalpage']}
<a href="{$indexurl}">首页</a>
<a href="{$nexturl}">下一页</a>
<a href="{$preurl}">前一页</a>
<a href="{$lasturl}">末页</a></td>
  </tr>
<!--
EOT;
?>-->
</table>
</body>
</html>
